<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:th="http://www.thymeleaf.org"
	xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout"
	layout:decorate="~{layout.html}">
<head>
<title>OAUTH2客户端</title>
</head>

<body>
	<h2>Taco Cloud Admin: Ingredients</h2>

	<form method="POST" th:action="@{/admin/ingredients}">
		ID: <input type="text" name="id"></input><br /> Name: <input
			type="text" name="name"></input><br /> Type: <select name="type">
			<option value="WRAP">WRAP</option>
			<option value="PROTEIN">PROTEIN</option>
			<option value="VEGGIES">VEGGIES</option>
			<option value="CHEESE">CHEESE</option>
			<option value="SAUCE">SAUCE</option>
		</select> <br /> <input type="submit" />
	</form>

	<hr />
	<table border="1">
		<tr>
			<th>ID</th>
			<th>NAME</th>
			<td>TYPE</td>
		</tr>
		<tr th:each="ingredient: ${ingredients}" >
			<td th:text="${ingredient.id}"></td>
			<td th:text="${ingredient.name}"></td>
			<td th:text="${ingredient.type}"></td>
		</tr>
	</table>
</body>
</html>